import 'package:word_game/battle/skills/battle_state.dart';

import '../attack_action.dart';

class Debuff extends BattleState {
  /// 每次造成伤害的action
  AttackAction action;
  /// 是否禁止攻击
  bool noAttack = false;
  /// 减少的攻击
  int attackPowerDecrement = 0;

  Debuff copy() {
    Debuff newObj = Debuff();
    newObj.name = name;
    newObj.lastRound = lastRound;
    newObj.noAttack = noAttack;
    newObj.action = action;
    newObj.attackPowerDecrement = attackPowerDecrement;
    return newObj;
  }
}